package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.OrderItem;

/**
 * 订单详细项Mapper接口
 * 
 * @author cwc
 * @date 2024-12-13
 */
public interface OrderItemMapper 
{
    /**
     * 查询订单详细项
     * 
     * @param orderItemId 订单详细项主键
     * @return 订单详细项
     */
    public OrderItem selectOrderItemByOrderItemId(Long orderItemId);

    /**
     * 查询订单详细项列表
     * 
     * @param orderItem 订单详细项
     * @return 订单详细项集合
     */
    public List<OrderItem> selectOrderItemList(OrderItem orderItem);

    /**
     * 新增订单详细项
     * 
     * @param orderItem 订单详细项
     * @return 结果
     */
    public int insertOrderItem(OrderItem orderItem);

    /**
     * 修改订单详细项
     * 
     * @param orderItem 订单详细项
     * @return 结果
     */
    public int updateOrderItem(OrderItem orderItem);

    /**
     * 删除订单详细项
     * 
     * @param orderItemId 订单详细项主键
     * @return 结果
     */
    public int deleteOrderItemByOrderItemId(Long orderItemId);

    /**
     * 批量删除订单详细项
     * 
     * @param orderItemIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderItemByOrderItemIds(Long[] orderItemIds);
}
